package com.cd826dong.clouddemo.event;

import org.springframework.cloud.bus.event.RemoteApplicationEvent;

public class MyBusEvent extends RemoteApplicationEvent {
    private static final long serialVersionUID = 1L;
    private String eventType;

    public MyBusEvent() {
        super();
    }

    // 定义自己的构造函数
    public MyBusEvent(Object source, String originService,
                      String destinationService, String eventType) {
        super(source, originService, destinationService);
        this.eventType = eventType;
    }


    public String getEventType() {
        return eventType;
    }

    public void setEventType(String eventType) {
        this.eventType = eventType;
    }
}
